/*
 *  ==== DO NOT MODIFY THIS FILE - CHANGES WILL BE OVERWRITTEN ====
 *
 *  Generated from
 *      C:/Arquivos de programas/Texas Instruments/ccsv42/grace_1_00_01_83/packages/ti/mcu/msp430/csl/gpio/GPIO_init.xdt
 */

#include <ti/mcu/msp430/include/msp430.h>

/*
 *  ======== GPIO_init ========
 *  Initialize MSP430 General Purpose Input Output Ports
 */
void GPIO_init(void)
{
    /* Port 1 Output Register */
    P1OUT = 0;

    /* Port 1 Direction Register */
    P1DIR = BIT0 + BIT1;

    /* Port 1 Interrupt Edge Select Register */
    P1IES = 0;

    /* Port 1 Interrupt Flag Register */
    P1IFG = 0;

    /* Port 2 Output Register */
    P2OUT = 0;

    /* Port 2 Interrupt Edge Select Register */
    P2IES = 0;

    /* Port 2 Interrupt Flag Register */
    P2IFG = 0;

    /* Port 3 Output Register */
    P3OUT = 0;

    /* Port 3 Port Select Register */
    P3SEL = BIT4 + BIT5;

    /* Port 3 Direction Register */
    P3DIR = BIT1;

    /* Port 4 Output Register */
    P4OUT = 0;

    /* Port 4 Port Select Register */
    P4SEL = BIT3 + BIT4 + BIT5;

    /* Port 4 Direction Register */
    P4DIR = BIT3 + BIT4 + BIT5;

}
